package club.mzywucai.blog.file_system.service;

import club.mzywucai.blog.file_system.pojo.domain.JsonData;
import club.mzywucai.blog.file_system.pojo.domain.UploadResult;
import club.mzywucai.blog.file_system.pojo.po.FileInfoPo;
import club.mzywucai.blog.file_system.pojo.vo.UserVo;

/**
 * @author mzywucai
 * @Description 和上传有关操作的Service
 * @date 2019/2/10
 */
public interface RelatedUploadService {
    /**
     * @Description 从图片上传处从session中拿到user，并且拿到最后封装的result结果集
     * @author mzywucai
     * @time 2019-02-10
     * @see 
     * @return   club.mzywucai.blog.file_system.pojo.domain.JsonData
     * @params  [user, result]
     */
    JsonData updateUserPhotoURIByEmail(UserVo user, UploadResult result);

    /**
     * @Description 通过大类别的ID，获得对应的remark
     * @author mzywucai
     * @time 2019-02-11
     * @see 
     * @return   java.lang.String
     * @params  [typeId]
     */
    String searchFileInfoRemarkByIdAndLimitLevel1(String typeId);

    /**
     * @Description 上传文件之后，存储文件上传的信息
     * @author mzywucai
     * @time 2019-02-11
     * @see 
     * @return   club.mzywucai.blog.file_system.pojo.domain.JsonData
     * @params  []
     */
    void addFileInfo(FileInfoPo fileInfoPo);
}
